file(GLOB_RECURSE SOURCES device/*.c
                          key/*.c
                        *.c
                        )

set(include_dirs 
    key
    device
    .
    )

#find_package(esp_driver_uart REQUIRED)

idf_component_register(SRCS ${SOURCES}
                    INCLUDE_DIRS ${include_dirs}
                    REQUIRES driver
                    REQUIRES esp_driver_uart
                    REQUIRES esp_driver_spi
                    REQUIRES esp_driver_gpio
                    REQUIRES esp_event
                    REQUIRES esp_timer
                    REQUIRES app_update
                    )


